package com.trsj.lnsj.task;

import org.springframework.stereotype.Component;

@Component
public class ScheduledTasks {
//  @Autowired
//  private Environment env;
//  @Autowired
//  private UserRepo scdsUserRepo;
//
//  /**
//   * 生成用户unionid
//   */
////  @Scheduled(fixedRate = 10000)
//  @Async
//  public void generatedUnionId() {
//  }
//
////  /**
////   * 生成龙的传人数据库用户关注信息
////   */
////  @Scheduled(fixedRate = 10000)
////  @Async
////  public void generateLdcrUserSubscribe() {
////    List<PoetryUserDTO> userList = ldcrUserRepo.findAll();
////    if (CollectionUtils.isNotEmpty(userList)) {
////      for (PoetryUserDTO user : userList) {
////        String subscribe = getSubscribe(user.getOpenid());
////        if (StringUtils.isNotBlank(subscribe)) {
////          user.setIsSubscribe(Short.valueOf(subscribe));
////        }
////        ldcrUserRepo.saveAndFlush(user);
////      }
////    }
////  }

}
